package com.iran.composite.test;

public class HRDepartment extends Company {
    public HRDepartment(String name, Integer code) {
        super(name, code);
    }


    @Override
    public void add(Company company) {

    }

    @Override
    public void del(Company company) {

    }

    @Override
    public void display(int depth) {
        StringBuffer stringBuffer = new StringBuffer();
        for (int i = 0; i < depth; i++) {
            stringBuffer.append("-");
        }
        stringBuffer.append(getName());
        System.out.println(stringBuffer.toString());
    }

    @Override
    public void lineDuty() {
        System.out.println(this.getName()+"负责公司人事招聘培训管理");
    }
}
